{include file="../application/admin/view/header.html" /}
</head>
<body>
<div class="container">
<div class="row">
<div class="col-md-12">
	<div class="alert kesn_prompt"></div>
</div>
	
	<!-- <nav class="navbar navbar-default navbar-lg" role="navigation" align="center"> -->
	<button class="btn btn-info kesn_to" data-title="新增模块" data-id="add_modules" data-url="/index.php/admin/modules/add_module">新增<span class="fui-plus btn-tip"></span></button>
	<!-- </nav> -->
</div><br/>
&nbsp;&nbsp;<br/>
<div></div>
<div class="row">
	<table class="table table-hover">
		<thead>
			<th>ID</th>
			<th>模块</th>
			<th>操作</th>
		</thead>
		<tbody>
		{volist name="modules" id="module"}
		<tr class="_item">
				<th scrope="row">{$module.id}</th>
				<td>{$module.module}</td>
				<td><div>
					<a href="#" class="btn btn-primary kesn_to btn-sm" data-title="编辑子模块" data-id="edit_submodule" data-url='/index.php/admin/modules/edit_module?module_id={$module.id}'>编辑<span class="fui-new btn-tip"></span></a>
					<a href="#" class="btn btn-danger del_module btn-sm" data-_id="{$module.id}" data-_name="{$module.module}">删除<span class="fui-cross btn-tip"></span></a>
				</div></td>
		</tr>
		{/volist}
	</tbody>
</div>
	
</div>


{include file="../application/admin/view/footer.html" /}
<script type="text/javascript">
	$('._item').on('click','.del_module',function(){
		var _this = $(this);
		var _id = _this.attr('data-_id');
		var _name = _this.attr('data-_name');
		var _message = '您确定删除'+_id+' : '+_name+' 吗？';
		var _url = 'del_module';
		kesn_del(_id,_url,_message,_this);
    	});
	
</script>
</footer>
</body>
</html>